.class public Les/hw;
.super Ljava/lang/Object;
.source "LogReader.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/hw$f;,
        Les/hw$g;,
        Les/hw$i;,
        Les/hw$h;
    }
.end annotation


# instance fields
.field private final a:Ljava/lang/String;

.field private final b:Les/qu$h;

.field private final c:Les/bw;

.field private final d:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private final e:J

.field private final f:J

.field private final g:J

.field private final h:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "Ljava/util/List<",
            "Les/hw$i;",
            ">;>;"
        }
    .end annotation
.end field

.field private final i:Landroid/util/SparseArray;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Landroid/util/SparseArray<",
            "[J>;"
        }
    .end annotation
.end field

.field private final j:Les/hw$h;

.field private final k:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private final l:Ljava/util/Set;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Set<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private final m:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private n:Ljava/util/Comparator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Comparator<",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/d;",
            ">;>;>;"
        }
    .end annotation
.end field

.field private o:Ljava/util/Comparator;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Comparator<",
            "Lcom/estrongs/android/pop/app/log/d;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(IJJLes/qu$h;Ljava/util/HashMap;Ljava/util/List;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(IJJ",
            "Les/qu$h;",
            "Ljava/util/HashMap<",
            "Ljava/lang/Integer;",
            "Ljava/lang/Integer;",
            ">;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/hw$d;

    invoke-direct {v0, p0}, Les/hw$d;-><init>(Les/hw;)V

    iput-object v0, p0, Les/hw;->n:Ljava/util/Comparator;

    .line 3
    new-instance v0, Les/hw$e;

    invoke-direct {v0, p0}, Les/hw$e;-><init>(Les/hw;)V

    iput-object v0, p0, Les/hw;->o:Ljava/util/Comparator;

    const/4 v0, 0x1

    if-ne p1, v0, :cond_0

    const-string p1, "timecreated"

    .line 4
    iput-object p1, p0, Les/hw;->a:Ljava/lang/String;

    goto :goto_0

    :cond_0
    const-string p1, "lastmodified"

    .line 5
    iput-object p1, p0, Les/hw;->a:Ljava/lang/String;

    .line 6
    :goto_0
    iput-object p6, p0, Les/hw;->b:Les/qu$h;

    .line 7
    invoke-static {}, Les/bw;->c()Les/bw;

    move-result-object p1

    iput-object p1, p0, Les/hw;->c:Les/bw;

    .line 8
    iput-wide p2, p0, Les/hw;->e:J

    .line 9
    iput-wide p4, p0, Les/hw;->f:J

    .line 10
    invoke-direct {p0}, Les/hw;->b()J

    move-result-wide p1

    iput-wide p1, p0, Les/hw;->g:J

    .line 11
    new-instance p1, Landroid/util/SparseArray;

    invoke-direct {p1}, Landroid/util/SparseArray;-><init>()V

    iput-object p1, p0, Les/hw;->h:Landroid/util/SparseArray;

    .line 12
    new-instance p1, Landroid/util/SparseArray;

    invoke-direct {p1}, Landroid/util/SparseArray;-><init>()V

    iput-object p1, p0, Les/hw;->i:Landroid/util/SparseArray;

    .line 13
    iput-object p8, p0, Les/hw;->m:Ljava/util/List;

    .line 14
    new-instance p1, Landroid/util/SparseArray;

    invoke-direct {p1}, Landroid/util/SparseArray;-><init>()V

    iput-object p1, p0, Les/hw;->d:Landroid/util/SparseArray;

    .line 15
    invoke-virtual {p7}, Ljava/util/HashMap;->size()I

    move-result p1

    const-string p2, "zipview"

    const/4 p3, 0x5

    const-string p4, "textview"

    const/4 p5, 0x4

    const-string p6, "videoview"

    const/4 p8, 0x3

    const-string v1, "audioview"

    const/4 v2, 0x2

    const-string v3, "imageview"

    const-string v4, "apkview"

    const/4 v5, 0x6

    if-nez p1, :cond_1

    .line 16
    iget-object p1, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p1, v5, v4}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 17
    iget-object p1, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p1, v0, v3}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 18
    iget-object p1, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p1, v2, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 19
    iget-object p1, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p1, p8, p6}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 20
    iget-object p1, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p1, p5, p4}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    .line 21
    iget-object p1, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p1, p3, p2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    goto :goto_2

    .line 22
    :cond_1
    invoke-virtual {p7}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object p1

    .line 23
    invoke-interface {p1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :goto_1
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result p7

    if-eqz p7, :cond_2

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p7

    check-cast p7, Ljava/lang/Integer;

    invoke-virtual {p7}, Ljava/lang/Integer;->intValue()I

    move-result p7

    packed-switch p7, :pswitch_data_0

    goto :goto_1

    .line 24
    :pswitch_0
    iget-object p7, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p7, v5, v4}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    goto :goto_1

    .line 25
    :pswitch_1
    iget-object p7, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p7, p3, p2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    goto :goto_1

    .line 26
    :pswitch_2
    iget-object p7, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p7, p5, p4}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    goto :goto_1

    .line 27
    :pswitch_3
    iget-object p7, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p7, p8, p6}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    goto :goto_1

    .line 28
    :pswitch_4
    iget-object p7, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p7, v2, v1}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    goto :goto_1

    .line 29
    :pswitch_5
    iget-object p7, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {p7, v0, v3}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    goto :goto_1

    .line 30
    :cond_2
    :goto_2
    invoke-static {}, Lcom/estrongs/android/pop/utils/n;->d()[Lcom/estrongs/android/pop/utils/n$g;

    move-result-object p1

    if-eqz p1, :cond_4

    .line 31
    array-length p2, p1

    if-nez p2, :cond_3

    goto :goto_3

    .line 32
    :cond_3
    invoke-static {p1}, Les/hw;->a([Lcom/estrongs/android/pop/utils/n$g;)Ljava/util/List;

    move-result-object p2

    iput-object p2, p0, Les/hw;->k:Ljava/util/List;

    .line 33
    invoke-static {p1}, Les/hw;->b([Lcom/estrongs/android/pop/utils/n$g;)Ljava/util/Set;

    move-result-object p1

    iput-object p1, p0, Les/hw;->l:Ljava/util/Set;

    goto :goto_4

    .line 34
    :cond_4
    :goto_3
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p1

    iput-object p1, p0, Les/hw;->k:Ljava/util/List;

    .line 35
    invoke-static {}, Ljava/util/Collections;->emptySet()Ljava/util/Set;

    move-result-object p1

    iput-object p1, p0, Les/hw;->l:Ljava/util/Set;

    .line 36
    :goto_4
    new-instance p1, Les/hw$a;

    invoke-direct {p1, p0}, Les/hw$a;-><init>(Les/hw;)V

    iput-object p1, p0, Les/hw;->j:Les/hw$h;

    return-void

    nop

    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_5
        :pswitch_4
        :pswitch_3
        :pswitch_2
        :pswitch_1
        :pswitch_0
    .end packed-switch
.end method

.method static synthetic a(Les/hw;Ljava/lang/String;JJJ)I
    .locals 0

    .line 4
    invoke-direct/range {p0 .. p7}, Les/hw;->a(Ljava/lang/String;JJJ)I

    move-result p0

    return p0
.end method

.method private a(Ljava/lang/String;JJJ)I
    .locals 8

    .line 49
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "pid"

    .line 50
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v1, 0x3d

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p2, " AND "

    .line 51
    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p3, p0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 p3, 0x3e

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 52
    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "<="

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p6, p7}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 53
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 p2, 0x1

    new-array v3, p2, [Ljava/lang/String;

    const-string p2, "_id"

    const/4 p3, 0x0

    aput-object p2, v3, p3

    const-string v5, "pid,name"

    const/4 p2, 0x0

    .line 54
    :try_start_0
    iget-object v1, p0, Les/hw;->c:Les/bw;

    const/4 v6, 0x0

    const/4 v7, 0x0

    move-object v2, p1

    invoke-virtual/range {v1 .. v7}, Les/bw;->a(Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object p2
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez p2, :cond_1

    if-eqz p2, :cond_0

    .line 55
    invoke-interface {p2}, Landroid/database/Cursor;->close()V

    :cond_0
    return p3

    .line 56
    :cond_1
    :try_start_1
    invoke-interface {p2}, Landroid/database/Cursor;->getCount()I

    move-result p3
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz p2, :cond_2

    .line 57
    :goto_0
    invoke-interface {p2}, Landroid/database/Cursor;->close()V

    goto :goto_1

    :catchall_0
    move-exception p1

    goto :goto_2

    :catch_0
    move-exception p1

    .line 58
    :try_start_2
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz p2, :cond_2

    goto :goto_0

    :cond_2
    :goto_1
    return p3

    :goto_2
    if-eqz p2, :cond_3

    .line 59
    invoke-interface {p2}, Landroid/database/Cursor;->close()V

    .line 60
    :cond_3
    goto :goto_4

    :goto_3
    throw p1

    :goto_4
    goto :goto_3
.end method

.method static synthetic a(Les/hw;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/hw;->k:Ljava/util/List;

    return-object p0
.end method

.method static synthetic a(Les/hw;IJJ)Ljava/util/List;
    .locals 0

    .line 3
    invoke-direct/range {p0 .. p5}, Les/hw;->b(IJJ)Ljava/util/List;

    move-result-object p0

    return-object p0
.end method

.method static synthetic a(Les/hw;Ljava/lang/String;Ljava/lang/String;JJJ)Ljava/util/List;
    .locals 0

    .line 2
    invoke-direct/range {p0 .. p8}, Les/hw;->a(Ljava/lang/String;Ljava/lang/String;JJJ)Ljava/util/List;

    move-result-object p0

    return-object p0
.end method

.method private a(Ljava/lang/String;Ljava/lang/String;JJJ)Ljava/util/List;
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            "JJJ)",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/o;",
            ">;"
        }
    .end annotation

    move-object v0, p0

    .line 61
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "pid"

    .line 62
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v2, 0x3d

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-wide v2, p3

    invoke-virtual {v1, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string v2, " AND "

    .line 63
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, v0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const/16 v3, 0x3e

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-wide v3, p5

    invoke-virtual {v1, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 64
    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, v0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "<="

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-wide/from16 v2, p7

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 65
    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 66
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, v0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " DESC LIMIT 0,4"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    const/4 v1, 0x3

    new-array v5, v1, [Ljava/lang/String;

    const/4 v1, 0x0

    const-string v2, "name"

    aput-object v2, v5, v1

    const/4 v1, 0x1

    const-string v2, "size"

    aput-object v2, v5, v1

    .line 67
    iget-object v1, v0, Les/hw;->a:Ljava/lang/String;

    const/4 v2, 0x2

    aput-object v1, v5, v2

    .line 68
    new-instance v1, Ljava/util/LinkedList;

    invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V

    .line 69
    new-instance v3, Les/hw$b;

    move-object v2, p2

    invoke-direct {v3, p0, p2, v1}, Les/hw$b;-><init>(Les/hw;Ljava/lang/String;Ljava/util/List;)V

    .line 70
    iget-object v2, v0, Les/hw;->c:Les/bw;

    const-string v7, "pid,name"

    const/4 v9, 0x0

    move-object v4, p1

    invoke-virtual/range {v2 .. v9}, Les/bw;->a(Les/bw$k;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    return-object v1
.end method

.method public static a([Lcom/estrongs/android/pop/utils/n$g;)Ljava/util/List;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([",
            "Lcom/estrongs/android/pop/utils/n$g;",
            ")",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 5
    new-instance v0, Ljava/util/ArrayList;

    array-length v1, p0

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    const/4 v1, 0x0

    .line 6
    :goto_0
    array-length v2, p0

    if-ge v1, v2, :cond_1

    .line 7
    aget-object v2, p0, v1

    iget-boolean v2, v2, Lcom/estrongs/android/pop/utils/n$g;->a:Z

    if-eqz v2, :cond_0

    .line 8
    aget-object v2, p0, v1

    iget-object v2, v2, Lcom/estrongs/android/pop/utils/n$g;->b:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/n;->l(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method private a(IJJ)Z
    .locals 4

    .line 71
    iget-object v0, p0, Les/hw;->i:Landroid/util/SparseArray;

    invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, [J

    const/4 v0, 0x1

    if-nez p1, :cond_0

    return v0

    .line 72
    :cond_0
    aget-wide v1, p1, v0

    cmp-long v3, v1, p2

    if-lez v3, :cond_2

    const/4 p2, 0x0

    aget-wide v1, p1, p2

    cmp-long p1, v1, p4

    if-lez p1, :cond_1

    goto :goto_0

    :cond_1
    return p2

    :cond_2
    :goto_0
    return v0
.end method

.method private a()[J
    .locals 22

    move-object/from16 v0, p0

    .line 9
    iget-wide v1, v0, Les/hw;->g:J

    .line 10
    iget-wide v3, v0, Les/hw;->f:J

    const/4 v5, 0x0

    cmp-long v6, v1, v3

    if-lez v6, :cond_0

    new-array v1, v5, [J

    return-object v1

    .line 11
    :cond_0
    iget-wide v3, v0, Les/hw;->e:J

    const-wide/32 v6, 0x36ee80

    sub-long v8, v3, v6

    const-wide/32 v10, 0x5265c00

    sub-long v12, v3, v10

    .line 12
    new-instance v14, Ljava/util/ArrayList;

    const/16 v15, 0x14

    invoke-direct {v14, v15}, Ljava/util/ArrayList;-><init>(I)V

    .line 13
    iget-wide v5, v0, Les/hw;->f:J

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    invoke-virtual {v14, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 14
    iget-wide v5, v0, Les/hw;->f:J

    const-string v7, "LogReader"

    const/16 v18, 0x1

    cmp-long v19, v5, v12

    if-gtz v19, :cond_3

    const-string v3, "\u843d\u5728\u6309\u5929\u8ba1\u7b97\u7684\u533a\u95f4"

    .line 15
    invoke-static {v7, v3}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v3, 0x1

    :goto_0
    int-to-long v4, v3

    mul-long v4, v4, v10

    sub-long v4, v12, v4

    cmp-long v6, v4, v1

    if-gez v6, :cond_1

    .line 16
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v14, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_a

    .line 17
    :cond_1
    iget-wide v6, v0, Les/hw;->f:J

    cmp-long v8, v4, v6

    if-gez v8, :cond_2

    .line 18
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v14, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_2
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_3
    const-string v15, "\u7ec8\u70b9\u843d\u5728\u6309\u5929\u8ba1\u7b97\u7684\u533a\u95f4"

    cmp-long v20, v5, v8

    if-gtz v20, :cond_a

    const-string v3, "\u8d77\u70b9\u843d\u5728\u6309\u5c0f\u65f6\u8ba1\u7b97\u7684\u533a\u95f4"

    .line 19
    invoke-static {v7, v3}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    cmp-long v3, v1, v12

    if-lez v3, :cond_6

    const-string v3, "\u7ec8\u70b9\u4e5f\u843d\u5728\u6309\u5c0f\u65f6\u8ba1\u7b97\u7684\u533a\u95f4"

    .line 20
    invoke-static {v7, v3}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v3, 0x1

    :goto_1
    int-to-long v4, v3

    const-wide/32 v6, 0x36ee80

    mul-long v4, v4, v6

    sub-long v4, v8, v4

    cmp-long v6, v4, v1

    if-gez v6, :cond_4

    .line 21
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v14, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_a

    .line 22
    :cond_4
    iget-wide v6, v0, Les/hw;->f:J

    cmp-long v10, v4, v6

    if-gez v10, :cond_5

    .line 23
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v14, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_5
    add-int/lit8 v3, v3, 0x1

    goto :goto_1

    .line 24
    :cond_6
    invoke-static {v7, v15}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v3, 0x1

    :goto_2
    int-to-long v4, v3

    const-wide/32 v6, 0x36ee80

    mul-long v4, v4, v6

    sub-long v4, v8, v4

    cmp-long v6, v4, v12

    if-gez v6, :cond_8

    const/4 v3, 0x1

    :goto_3
    int-to-long v4, v3

    mul-long v4, v4, v10

    sub-long v4, v12, v4

    cmp-long v6, v4, v1

    if-gez v6, :cond_7

    .line 25
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v14, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_a

    .line 26
    :cond_7
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v14, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_3

    .line 27
    :cond_8
    iget-wide v6, v0, Les/hw;->f:J

    cmp-long v15, v4, v6

    if-gez v15, :cond_9

    .line 28
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v14, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_9
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    :cond_a
    cmp-long v20, v5, v3

    if-gtz v20, :cond_17

    const-string v5, "\u8d77\u70b9\u843d\u5728\u6309\u5206\u949f\u8ba1\u7b97\u7684\u533a\u95f4"

    .line 29
    invoke-static {v7, v5}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const-wide/32 v5, 0xea60

    cmp-long v20, v1, v8

    if-lez v20, :cond_d

    const-string v8, "\u7ec8\u70b9\u4e5f\u843d\u5728\u6309\u5206\u949f\u8ba1\u7b97\u7684\u533a\u95f4"

    .line 30
    invoke-static {v7, v8}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v7, 0x1

    :goto_4
    int-to-long v8, v7

    mul-long v8, v8, v5

    sub-long v8, v3, v8

    cmp-long v10, v8, v1

    if-gez v10, :cond_b

    .line 31
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v14, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto/16 :goto_a

    .line 32
    :cond_b
    iget-wide v10, v0, Les/hw;->f:J

    cmp-long v12, v8, v10

    if-gez v12, :cond_c

    .line 33
    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v8

    invoke-virtual {v14, v8}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_c
    add-int/lit8 v7, v7, 0x1

    goto :goto_4

    :cond_d
    cmp-long v20, v1, v12

    if-lez v20, :cond_11

    const-string v10, "\u7ec8\u70b9\u843d\u5728\u6309\u5c0f\u65f6\u8ba1\u7b97\u7684\u533a\u95f4"

    .line 34
    invoke-static {v7, v10}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v7, 0x1

    :goto_5
    int-to-long v10, v7

    mul-long v10, v10, v5

    sub-long v10, v3, v10

    cmp-long v12, v10, v8

    if-gez v12, :cond_f

    const/4 v3, 0x1

    :goto_6
    int-to-long v4, v3

    const-wide/32 v6, 0x36ee80

    mul-long v4, v4, v6

    sub-long v4, v8, v4

    cmp-long v6, v4, v1

    if-gez v6, :cond_e

    .line 35
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v14, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_a

    .line 36
    :cond_e
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v14, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_6

    .line 37
    :cond_f
    iget-wide v12, v0, Les/hw;->f:J

    cmp-long v15, v10, v12

    if-gez v15, :cond_10

    .line 38
    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v10

    invoke-virtual {v14, v10}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_10
    add-int/lit8 v7, v7, 0x1

    goto :goto_5

    .line 39
    :cond_11
    invoke-static {v7, v15}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v7, 0x1

    :goto_7
    int-to-long v10, v7

    mul-long v10, v10, v5

    sub-long v10, v3, v10

    cmp-long v15, v10, v8

    if-gez v15, :cond_15

    const/4 v3, 0x1

    :goto_8
    const/16 v4, 0x18

    if-ge v3, v4, :cond_12

    int-to-long v4, v3

    const-wide/32 v15, 0x36ee80

    mul-long v4, v4, v15

    sub-long v4, v8, v4

    .line 40
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v14, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_8

    :cond_12
    const/4 v3, 0x1

    :goto_9
    int-to-long v4, v3

    const-wide/32 v20, 0x5265c00

    mul-long v4, v4, v20

    sub-long v4, v12, v4

    cmp-long v6, v4, v1

    if-gez v6, :cond_14

    .line 41
    invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    invoke-virtual {v14, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 42
    :goto_a
    invoke-virtual {v14}, Ljava/util/ArrayList;->size()I

    move-result v1

    new-array v1, v1, [J

    .line 43
    invoke-virtual {v14}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const/4 v5, 0x0

    :goto_b
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_13

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Long;

    add-int/lit8 v4, v5, 0x1

    .line 44
    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    aput-wide v6, v1, v5

    move v5, v4

    goto :goto_b

    :cond_13
    return-object v1

    .line 45
    :cond_14
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v14, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v3, v3, 0x1

    goto :goto_9

    :cond_15
    const-wide/32 v15, 0x36ee80

    const-wide/32 v20, 0x5265c00

    .line 46
    iget-wide v5, v0, Les/hw;->f:J

    cmp-long v17, v10, v5

    if-gez v17, :cond_16

    .line 47
    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    invoke-virtual {v14, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_16
    add-int/lit8 v7, v7, 0x1

    const-wide/32 v5, 0xea60

    goto :goto_7

    .line 48
    :cond_17
    new-instance v1, Ljava/lang/IllegalStateException;

    const-string v2, "mStartTimestamp > startTmByMinute"

    invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    goto :goto_d

    :goto_c
    throw v1

    :goto_d
    goto :goto_c
.end method

.method private b()J
    .locals 7

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/l;->U()J

    move-result-wide v0

    .line 7
    iget-wide v2, p0, Les/hw;->e:J

    const-wide/32 v4, 0x48190800

    sub-long/2addr v2, v4

    const-wide/16 v4, -0x1

    cmp-long v6, v0, v4

    if-nez v6, :cond_0

    return-wide v2

    :cond_0
    cmp-long v4, v2, v0

    if-lez v4, :cond_1

    return-wide v2

    :cond_1
    return-wide v0
.end method

.method private b(IJJ)Ljava/util/List;
    .locals 9
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(IJJ)",
            "Ljava/util/List<",
            "Les/hw$i;",
            ">;"
        }
    .end annotation

    .line 8
    iget-object v0, p0, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {v0, p1}, Landroid/util/SparseArray;->get(I)Ljava/lang/Object;

    move-result-object v0

    move-object v3, v0

    check-cast v3, Ljava/lang/String;

    if-nez v3, :cond_0

    .line 9
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object p1

    return-object p1

    .line 10
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    .line 11
    iget-object v1, p0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, ">"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2, p3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    const-string p2, " AND "

    .line 12
    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, "<="

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p4, p5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 13
    iget-object p2, p0, Les/hw;->m:Ljava/util/List;

    const/4 p3, 0x4

    const-string p4, ")"

    if-eqz p2, :cond_2

    invoke-interface {p2}, Ljava/util/List;->isEmpty()Z

    move-result p2

    if-nez p2, :cond_2

    const-string p2, " AND ("

    .line 14
    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 15
    iget-object p2, p0, Les/hw;->m:Ljava/util/List;

    invoke-interface {p2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p2

    :goto_0
    invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z

    move-result p5

    if-eqz p5, :cond_1

    invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p5

    check-cast p5, Ljava/lang/String;

    .line 16
    invoke-static {p5}, Landroid/database/DatabaseUtils;->sqlEscapeString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p5

    const-string v1, "groupname="

    .line 17
    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p5, " OR "

    invoke-virtual {v0, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 18
    :cond_1
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I

    move-result p2

    sub-int/2addr p2, p3

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I

    move-result p5

    invoke-virtual {v0, p2, p5}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder;

    .line 19
    invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 20
    :cond_2
    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    const/4 p2, 0x5

    new-array v4, p2, [Ljava/lang/String;

    const/4 p2, 0x0

    const-string p5, "pid"

    aput-object p5, v4, p2

    const/4 p2, 0x1

    const-string p5, "groupname"

    aput-object p5, v4, p2

    const-string p2, "path"

    const/4 p5, 0x2

    aput-object p2, v4, p5

    const/4 p2, 0x3

    .line 21
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "min("

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    aput-object v0, v4, p2

    new-instance p2, Ljava/lang/StringBuilder;

    invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "max("

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Les/hw;->a:Ljava/lang/String;

    invoke-virtual {p2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2, p4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    aput-object p2, v4, p3

    new-array p2, p5, [J

    .line 22
    fill-array-data p2, :array_0

    .line 23
    new-instance p3, Ljava/util/LinkedList;

    invoke-direct {p3}, Ljava/util/LinkedList;-><init>()V

    .line 24
    new-instance v2, Les/hw$c;

    invoke-direct {v2, p0, p3, p2}, Les/hw$c;-><init>(Les/hw;Ljava/util/List;[J)V

    .line 25
    iget-object v1, p0, Les/hw;->c:Les/bw;

    const/4 v7, 0x0

    const/4 v8, 0x0

    const-string v6, "pid,groupname"

    invoke-virtual/range {v1 .. v8}, Les/bw;->a(Les/bw$k;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    .line 26
    iget-object p4, p0, Les/hw;->i:Landroid/util/SparseArray;

    invoke-virtual {p4, p1, p2}, Landroid/util/SparseArray;->put(ILjava/lang/Object;)V

    return-object p3

    :array_0
    .array-data 8
        0x7fffffffffffffffL
        -0x8000000000000000L
    .end array-data
.end method

.method static synthetic b(Les/hw;)Ljava/util/Set;
    .locals 0

    .line 1
    iget-object p0, p0, Les/hw;->l:Ljava/util/Set;

    return-object p0
.end method

.method public static b([Lcom/estrongs/android/pop/utils/n$g;)Ljava/util/Set;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "([",
            "Lcom/estrongs/android/pop/utils/n$g;",
            ")",
            "Ljava/util/Set<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .line 2
    new-instance v0, Ljava/util/HashSet;

    invoke-direct {v0}, Ljava/util/HashSet;-><init>()V

    const/4 v1, 0x0

    .line 3
    :goto_0
    array-length v2, p0

    if-ge v1, v2, :cond_1

    .line 4
    aget-object v2, p0, v1

    iget-boolean v2, v2, Lcom/estrongs/android/pop/utils/n$g;->a:Z

    if-nez v2, :cond_0

    .line 5
    aget-object v2, p0, v1

    iget-object v2, v2, Lcom/estrongs/android/pop/utils/n$g;->b:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/pop/utils/n;->l(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/Set;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method static synthetic c(Les/hw;)Les/qu$h;
    .locals 0

    .line 1
    iget-object p0, p0, Les/hw;->b:Les/qu$h;

    return-object p0
.end method

.method static synthetic d(Les/hw;)Les/hw$h;
    .locals 0

    .line 1
    iget-object p0, p0, Les/hw;->j:Les/hw$h;

    return-object p0
.end method

.method static synthetic e(Les/hw;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/hw;->g:J

    return-wide v0
.end method

.method static synthetic f(Les/hw;)J
    .locals 2

    .line 1
    iget-wide v0, p0, Les/hw;->f:J

    return-wide v0
.end method

.method static synthetic g(Les/hw;)Landroid/util/SparseArray;
    .locals 0

    .line 1
    iget-object p0, p0, Les/hw;->h:Landroid/util/SparseArray;

    return-object p0
.end method

.method static synthetic h(Les/hw;)Landroid/util/SparseArray;
    .locals 0

    .line 1
    iget-object p0, p0, Les/hw;->d:Landroid/util/SparseArray;

    return-object p0
.end method


# virtual methods
.method public final a(I)Ljava/util/List;
    .locals 23
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(I)",
            "Ljava/util/List<",
            "Landroid/util/Pair<",
            "Ljava/lang/Long;",
            "Ljava/util/List<",
            "Lcom/estrongs/android/pop/app/log/d;",
            ">;>;>;"
        }
    .end annotation

    move-object/from16 v8, p0

    move/from16 v9, p1

    .line 73
    iget-object v0, v8, Les/hw;->c:Les/bw;

    invoke-virtual {v0}, Les/bw;->b()V

    .line 74
    iget-object v0, v8, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {v0}, Landroid/util/SparseArray;->size()I

    move-result v10

    .line 75
    invoke-static {v10}, Ljava/util/concurrent/Executors;->newFixedThreadPool(I)Ljava/util/concurrent/ExecutorService;

    move-result-object v11

    .line 76
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v10}, Ljava/util/ArrayList;-><init>(I)V

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v10, :cond_0

    .line 77
    iget-object v2, v8, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {v2, v1}, Landroid/util/SparseArray;->keyAt(I)I

    move-result v2

    .line 78
    new-instance v3, Les/hw$g;

    invoke-direct {v3, v8, v2}, Les/hw$g;-><init>(Les/hw;I)V

    .line 79
    invoke-interface {v11, v3}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 80
    :cond_0
    invoke-direct/range {p0 .. p0}, Les/hw;->a()[J

    move-result-object v13

    .line 81
    array-length v1, v13

    const/4 v14, 0x1

    if-gt v1, v14, :cond_1

    .line 82
    invoke-interface {v11}, Ljava/util/concurrent/ExecutorService;->shutdownNow()Ljava/util/List;

    .line 83
    iget-object v0, v8, Les/hw;->c:Les/bw;

    invoke-virtual {v0}, Les/bw;->close()V

    .line 84
    invoke-static {}, Ljava/util/Collections;->emptyList()Ljava/util/List;

    move-result-object v0

    return-object v0

    .line 85
    :cond_1
    new-instance v1, Ljava/util/LinkedList;

    invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V

    .line 86
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_1
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/Future;

    .line 87
    :try_start_0
    invoke-interface {v0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    .line 88
    invoke-interface {v1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    .line 89
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_1

    .line 90
    :cond_2
    new-instance v15, Ljava/util/HashMap;

    invoke-direct {v15}, Ljava/util/HashMap;-><init>()V

    .line 91
    new-instance v7, Ljava/util/ArrayList;

    invoke-direct {v7, v10}, Ljava/util/ArrayList;-><init>(I)V

    const/4 v0, 0x0

    const/16 v16, 0x0

    .line 92
    :goto_2
    array-length v1, v13

    sub-int/2addr v1, v14

    if-ge v0, v1, :cond_9

    add-int/lit8 v17, v0, 0x1

    .line 93
    aget-wide v18, v13, v17

    .line 94
    aget-wide v20, v13, v0

    .line 95
    invoke-virtual {v7}, Ljava/util/ArrayList;->clear()V

    const/4 v0, 0x0

    :goto_3
    if-ge v0, v10, :cond_4

    .line 96
    iget-object v1, v8, Les/hw;->d:Landroid/util/SparseArray;

    invoke-virtual {v1, v0}, Landroid/util/SparseArray;->keyAt(I)I

    move-result v22

    move-object/from16 v1, p0

    move/from16 v2, v22

    move-wide/from16 v3, v18

    move-wide/from16 v5, v20

    .line 97
    invoke-direct/range {v1 .. v6}, Les/hw;->a(IJJ)Z

    move-result v1

    if-eqz v1, :cond_3

    move-object v12, v7

    goto :goto_4

    .line 98
    :cond_3
    new-instance v6, Les/hw$f;

    move-object v1, v6

    move-object/from16 v2, p0

    move/from16 v3, v22

    move-wide/from16 v4, v18

    move-object v14, v6

    move-object v12, v7

    move-wide/from16 v6, v20

    invoke-direct/range {v1 .. v7}, Les/hw$f;-><init>(Les/hw;IJJ)V

    .line 99
    invoke-interface {v11, v14}, Ljava/util/concurrent/ExecutorService;->submit(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;

    move-result-object v1

    invoke-virtual {v12, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_4
    add-int/lit8 v0, v0, 0x1

    move-object v7, v12

    const/4 v14, 0x1

    goto :goto_3

    :cond_4
    move-object v12, v7

    .line 100
    invoke-virtual {v12}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    move/from16 v2, v16

    :cond_5
    :goto_5
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/concurrent/Future;

    .line 101
    :try_start_1
    invoke-interface {v0}, Ljava/util/concurrent/Future;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    .line 102
    invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v0

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :goto_6
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_5

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/Map$Entry;

    .line 103
    invoke-interface {v3}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Ljava/lang/Long;

    .line 104
    invoke-interface {v3}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/util/List;

    .line 105
    invoke-interface {v15, v4}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Ljava/util/List;

    if-nez v5, :cond_6

    .line 106
    invoke-interface {v15, v4, v3}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_7

    .line 107
    :cond_6
    invoke-interface {v5, v3}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 108
    :goto_7
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    add-int/2addr v2, v3

    goto :goto_6

    :catch_1
    move-exception v0

    .line 109
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_5

    :cond_7
    if-lt v2, v9, :cond_8

    goto :goto_8

    :cond_8
    move/from16 v16, v2

    move-object v7, v12

    move/from16 v0, v17

    const/4 v14, 0x1

    goto/16 :goto_2

    .line 110
    :cond_9
    :goto_8
    invoke-interface {v11}, Ljava/util/concurrent/ExecutorService;->shutdownNow()Ljava/util/List;

    .line 111
    iget-object v0, v8, Les/hw;->c:Les/bw;

    invoke-virtual {v0}, Les/bw;->close()V

    .line 112
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v9}, Ljava/util/ArrayList;-><init>(I)V

    .line 113
    invoke-interface {v15}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_a
    :goto_9
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_b

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/Map$Entry;

    .line 114
    invoke-interface {v2}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Ljava/lang/Long;

    .line 115
    invoke-interface {v2}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/List;

    .line 116
    iget-object v4, v8, Les/hw;->o:Ljava/util/Comparator;

    invoke-static {v2, v4}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    if-eqz v2, :cond_a

    .line 117
    iget-wide v4, v8, Les/hw;->e:J

    invoke-virtual {v3}, Ljava/lang/Long;->longValue()J

    move-result-wide v6

    sub-long/2addr v4, v6

    .line 118
    invoke-interface {v2}, Ljava/util/List;->size()I

    .line 119
    new-instance v3, Landroid/util/Pair;

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-direct {v3, v4, v2}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    .line 120
    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_9

    .line 121
    :cond_b
    iget-object v1, v8, Les/hw;->n:Ljava/util/Comparator;

    invoke-static {v0, v1}, Ljava/util/Collections;->sort(Ljava/util/List;Ljava/util/Comparator;)V

    return-object v0
.end method
